#include "Shm.hpp"
#include "NamedPipe.hpp"

int main()
{
	NamedPipe named_pipe(fifoname);
	named_pipe.Create();
	named_pipe.OpenForRead();
	
	SharedMemory shm(gpathname, gproj_id, CREATER, gdefaultsize);
	char* mem = (char*)shm.VirtualAddr();
	while(true)
	{
		printf("%s\n", mem);
		sleep(1);
	}
	return 0;
}